var
  Layer: TIWCGJQMapQueryLayer;
begin
  IWCGJQMapQueryWidgets.Widget:= mqwPopup;
  IWCGJQMapQueryWidgets.Map:= IWCGJQMapQuery;
  IWCGJQMapQueryWidgets.WidgetOptionsPopup.OnContents.Script:= 'function(feature) { return ''<p>'' + feature.data.id + ''</p>''; }';
  IWCGJQMapQuery.MapQueryOptions.MaxExtent.Add('0');
  IWCGJQMapQuery.MapQueryOptions.MaxExtent.Add('-90');
  IWCGJQMapQuery.MapQueryOptions.MaxExtent.Add('160');
  IWCGJQMapQuery.MapQueryOptions.MaxExtent.Add('90');
  IWCGJQMapQuery.MapQueryOptions.Projection:= 'EPSG:4326';
  Layer:= IWCGJQMapQuery.MapQueryOptions.Layers.Add;
  Layer.LayerType:= mqltJSON;
  Layer.LayerOptionsJSON.Url:= 'data/poly.json';
  Layer.LayerOptionsJSON.Label_:= 'Polygons';
end;